<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<form:form commandName="debriefing" cssClass="form-horizontal"
	role="form" onsubmit="return false;">

	<div class="form-group">
		<label class="col-sm-1 control-label no-padding-right"
			   for=projectName>项目名称</label>
		<div class="col-sm-5">
			<input type="text" name="projectName" id="projectName" readonly="readonly"
				   placeholder="请输入项目名称"  value="${debriefing[0].projectName}"
				   class="form-control required">
		</div>

	</div>

    <c:forEach items="${debriefing}" var="debriefing">
        <div class="form-group">

			<label class="col-sm-1 control-label no-padding-right">创建时间</label>
			<div class="col-sm-3">
				<input type="text"  value="${debriefing.updateTime}"
					   placeholder="请输入时间"  class="form-control " >
			</div>

            <label class="col-sm-1 control-label no-padding-right">时间</label>
            <div class="col-sm-2">
                <input type="text"  value="${debriefing.datetime}"
                       placeholder="请输入时间"  class="form-control " >
            </div>

            <label class="col-sm-1 control-label no-padding-right">项目进展</label>
            <div class="col-sm-4">
                <input type="text" value="${debriefing.projectDebriefing}"
                       placeholder="请输入项目进展"  class="form-control" >
            </div>
        </div>
    </c:forEach>



    <%--<div class="form-group">
        <label class="col-sm-1 control-label no-padding-right">时间</label>
        <div class="col-sm-5">
            <input type="text" name="contents[1].datetime" id="timepick1"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
        <label class="col-sm-1 control-label no-padding-right">项目进展</label>
        <div class="col-sm-5">
            <input type="text" name="contents[1].projectDebriefing"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-1 control-label no-padding-right">时间</label>
        <div class="col-sm-5">
            <input type="text" name="contents[2].datetime" id="timepick2"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
        <label class="col-sm-1 control-label no-padding-right">项目进展</label>
        <div class="col-sm-5">
            <input type="text" name="contents[2].projectDebriefing"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-1 control-label no-padding-right">时间</label>
        <div class="col-sm-5">
            <input type="text" name="contents[3].datetime" id="timepick3"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
        <label class="col-sm-1 control-label no-padding-right">项目进展</label>
        <div class="col-sm-5">
            <input type="text" name="contents[3].projectDebriefing"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-1 control-label no-padding-right">时间</label>
        <div class="col-sm-5">
            <input type="text" name="contents[4].datetime" id="timepick4"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
        <label class="col-sm-1 control-label no-padding-right">项目进展</label>
        <div class="col-sm-5">
            <input type="text" name="contents[4].projectDebriefing"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-1 control-label no-padding-right">时间</label>
        <div class="col-sm-5">
            <input type="text" name="contents[5].datetime" id="timepick5"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
        <label class="col-sm-1 control-label no-padding-right">项目进展</label>
        <div class="col-sm-5">
            <input type="text" name="contents[5].projectDebriefing"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-1 control-label no-padding-right">时间</label>
        <div class="col-sm-5">
            <input type="text" name="contents[6].datetime" id="timepick6"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
        <label class="col-sm-1 control-label no-padding-right">项目进展</label>
        <div class="col-sm-5">
            <input type="text" name="contents[6].projectDebriefing"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-1 control-label no-padding-right">时间</label>
        <div class="col-sm-5">
            <input type="text" name="contents[7].datetime" id="timepick7"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
        <label class="col-sm-1 control-label no-padding-right">项目进展</label>
        <div class="col-sm-5">
            <input type="text" name="contents[7].projectDebriefing"
                   placeholder="请输入项目进展"  class="form-control " >
        </div>
    </div>



	<div class="form-group">
		<label class="col-sm-1 control-label no-padding-right" for="taxproof">佐证材料</label>
		<input class="col-sm-5" type="file" id="fileupload" name="files"
			accept=".zip"><br>

		<button class="col-sm-5 btn btn-large btn-primary" id="btn">上传</button>

		<input type="text" name="taxproof" id="taxproof" class="form-control "
			style="display: none" >

	</div>--%>
  <%--  <input type="text" name="summaryId" id="summaryId"
           value="${summary.summaryId}" class="form-control "
           style="display: none" >--%>
	<%--<form:hidden path="sysId" />--%>
</form:form>
<%--<script src="<s:url value="/assets/js/chosen.jquery.js"></s:url>"></script>--%>
<script src="<s:url value="/assets/js/ajaxfileupload.js"></s:url>"></script>
<%--<script src="<s:url value="/assets/js/jquery-ui.js"></s:url>"></script>--%>
<%--
<script src="<s:url value="/assets/css/jquery-ui.css"></s:url>"></script>
--%>


<%--<div id="dialog" title="提示">
	<div class="progress progress-striped active">
		<div class="progress-bar progress-bar-success" role="progressbar"
			aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
			style="width: 100%;"></div>

	</div>
	<p>正在上传 请稍后……</p>
</div>--%>

<script type="text/javascript">
	/*$("#dialog").hide();*/
	$("#btn").click(function() {
		var fileval = $("#fileupload").val();
		if (fileval == null || fileval == "") {
			alert("未选择任何文件");
			return;
		}

		/*$("#dialog").show();
		$("#dialog").dialog();*/
		$.ajaxFileUpload({
			type : "post",
			fileElementId : "fileupload",
			secureuri : false,
			dataType : 'json',
			url : "/pictureUpload/uploadBatch",
			async : false,
			success : function(data) {
				var val = data.data.sysid;
				console.log(val);
				$("#taxproof").attr("value", val);
			/*	$("#dialog").dialog("close");*/
				alert("成功");
			},
			error : function(data) {
				/*$("#dialog").dialog("close");*/
				alert("佐证材料上传失败 ！！请联系管理员");
			}

		});

	});



	/*var isauditval = $("#isaudit").val();
	console.log(isauditval);
	if(isauditval=='1'){
		$("#updatebtn").attr("disabled", true);
		console.log(isauditval+"111");
	}*/
	
	/*function findtwoClass() {
		var teamID = $("#teamClassId").val();
		var teamClassname = $("#teamClassId").find("option:selected").text();
		$("#teamClass").attr("value",teamClassname);
        //console.log(teamID);
		//alert(teamID);
		var teamcla = {
			"teamId" : teamID
		};

		$.ajax({
			url : "/chart/show/getTeamclassNames",
			dataType : "json", //返回数据形式为json
			type : "POST",
			contentType : 'application/json;charset=UTF-8',
			data : JSON.stringify(teamcla),
			success : function(data) {
				$("#teamname option").remove();
				$("#teamname").append(" <option value='00'>请选择</option>");
				for (var i = 0; i < data.data.length; i++) {
					var teamid = data.data[i].teamId;
					var teamname = data.data[i].teamName;
					$("#teamname").append(
							"<option value='"+teamname+"'>" + teamname
									+ "</option>");
					//console.log(teamname);
				}
			}
		});

	}*/
</script>
